<?php
class Loadclass{
    
    public function __construct($className,$url) {
       
        // if(!isset($className) || !isset($url)) die("请指定实例化名称与路径");
        // if(substr($url,0,strlen($url))!=="/") $url.="/";
        // if(!file_exists($_SERVER['DOCUMENT_ROOT'].$url.$className.".php")) die("没有找到控制器：".$_SERVER['DOCUMENT_ROOT'].$url.$className.".php");
        // require $_SERVER['DOCUMENT_ROOT'].$url.$className.".php"; 
        // if(!class_exists($className)) die("没有找到类:".$className);
        // return new $className;
        class userModel{
            
        }
        $test= new  userModel;
        $test->test();
    }
}
